package com.xy.p2p.model;

import java.util.Date;
/**
 * Tnoticeinfor entity. @author MyEclipse Persistence Tools
 */

public class Tnoticeinfor implements java.io.Serializable,Comparable<Tnoticeinfor>{

	// Fields

	private Long niid;
	private Tuser Tuser;
	private String title;
	private String content;
	private Date nidate;
	private Integer kinds;
	private Integer status;
	private String url;
	private String remark;

	// Constructors

	/** default constructor */
	public Tnoticeinfor() {
	}

	/** full constructor */
	public Tnoticeinfor(Tuser Tuser, String title, String content, Date nidate, Integer kinds, Integer status, String url, String remark) {
		this.Tuser = Tuser;
		this.title = title;
		this.content = content;
		this.nidate = nidate;
		this.kinds = kinds;
		this.status = status;
		this.url = url;
		this.remark = remark;
	}

	// Property accessors

	public Long getNiid() {
		return this.niid;
	}

	public void setNiid(Long niid) {
		this.niid = niid;
	}


	public Tuser getTuser() {
		return Tuser;
	}

	public void setTuser(Tuser tuser) {
		Tuser = tuser;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getNidate() {
		return this.nidate;
	}

	public void setNidate(Date nidate) {
		this.nidate = nidate;
	}

	public Integer getKinds() {
		return this.kinds;
	}

	public void setKinds(Integer kinds) {
		this.kinds = kinds;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public int compareTo(Tnoticeinfor o) {
		// TODO Auto-generated method stub
		return (int) (o.getNidate().getTime()/60000-this.nidate.getTime()/60000);
	}


}